package xyz.ddlnt.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author ZZULI_SE 210910
 * @data 2025/4/26 22:51
 */
@Schema(description = "用户信息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {
    @Schema(description = "用户 id")
    private Long id;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码（加密）")
    private String password;
    @Schema(description = "联系方式（可选）")
    private String contact;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "个人简介")
    private String personalIntroduction;

    @Schema(description = "关注数")
    private Integer followingCount;
    @Schema(description = "粉丝数")
    private Integer followerCount;
    @Schema(description = "获赞数")
    private Integer likedCount;
    @Schema(description = "文章数")
    private Integer articleCount;
    @Schema(description = "被收藏数")
    private Integer collectedCount;
    @Schema(description = "被评论数")
    private Integer commentedCount;
    @Schema(description = "被浏览数")
    private Integer browsedCount;

    @Schema(description = "注册时间")
    private LocalDateTime registerTime;
}
